import pymysql


__db = pymysql.connect(
    host='10.199.194.160',
    port=10243,
    user='recombination',
    password='HappyMarch',
    db='recombination',
    charset='utf8',
    autocommit=True,
    cursorclass=pymysql.cursors.DictCursor
)

def get_connection():
    __db.ping(reconnect=True)
    return __db
